﻿// ===============================================================================
// DotNet.Platform 开发框架 2016 版权所有
// ===============================================================================

using System;
using DotNet.Entity;
using System.ComponentModel.DataAnnotations;


namespace DotNet.JCore.Entity
{
    /// <summary>
    /// 车辆稽查点关联管理
    /// </summary>
    [Table("车辆稽查点关联")]
    public class CarPointMap
    {

        /// <summary>
        /// 主键
        /// </summary>
        [PrimaryKey]
        [Column("主键", false)]
        public string Id { get; set; }

        /// <summary>
        /// 车号
        /// </summary>
        [Column("车号")]
        [Required(ErrorMessage = "请输入车号")]
        [MaxLength(50, ErrorMessage = "车号长度不能超过{0}个字符")]
        public string CarNumber { get; set; }

        /// <summary>
        /// CarColor
        /// </summary>
        [Column("车牌颜色")]
        [Required(ErrorMessage = "请输入车牌颜色")]
        [MaxLength(50, ErrorMessage = "车牌颜色长度不能超过{0}个字符")]
        public string CarColor { get; set; }


        /// <summary>
        /// 所属客运站id
        /// </summary>
        [Column("所属客运站id",false)]
        [MaxLength(50, ErrorMessage = "所属客运站长度不能超过{0}个字符")]
        public string StationID { get; set; }
        /// <summary>
        /// 所属客运站
        /// </summary>
        [Column("所属客运站")]
        [MaxLength(50, ErrorMessage = "所属客运站长度不能超过{0}个字符")]
        public string Station { get; set; }

        /// <summary>
        /// 线路
        /// </summary>
        [Column("线路")]
        [Required(ErrorMessage = "请输入线路")]
        [MaxLength(50, ErrorMessage = "线路长度不能超过{0}个字符")]
        public string Line { get; set; }

        /// <summary>
        /// 运输企业
        /// </summary>
        [Column("所属公司")]
        [MaxLength(200, ErrorMessage = "所属公司不能超过{0}个字符")]
        public string Corp { get; set; }

        /// <summary>
        /// 稽查点主键
        /// </summary>
        [Column("稽查点主键", false)]
        [Required(ErrorMessage = "请选择稽查点主键")]
        [MaxLength(50, ErrorMessage = "稽查点主键长度不能超过{0}个字符")]
        public string PointId { get; set; }

        /// <summary>
        /// 稽查点名称
        /// </summary>
        [Column("稽查点")]
        [Required(ErrorMessage = "请选择稽查点名称")]
        [MaxLength(100, ErrorMessage = "稽查点名称长度不能超过{0}个字符")]
        public string PointName { get; set; }



        /// <summary>
        /// 创建用户主键
        /// </summary>
        [Column("创建用户主键")]
        public string CreateId { get; set; }

        /// <summary>
        /// 创建用户姓名
        /// </summary>
        [Column("创建用户姓名")]
        public string CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("创建时间")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 修改用户主键
        /// </summary>
        [Column("修改用户主键")]
        public string ModifyId { get; set; }

        /// <summary>
        /// 修改用户姓名
        /// </summary>
        [Column("修改用户姓名")]
        public string ModifyName { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("修改时间")]
        public DateTime? ModifyTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Column("备注")]
        public string Note { get; set; }

        /// <summary>
        /// 复制对象
        /// </summary>
        public CheckPoints Clone()
        {
            return (CheckPoints)MemberwiseClone();
        }
    }
}
